
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>   
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>  
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>  

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
        <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

        <title>JSP Page</title>
    </head>
    <body>
        <h1>${msg}</h1>

        <div class="container">
            <div class="row">
                <div class="col-md-8"> </div>

            </div>
            <div class="row"  >

                <div class="col-md-4"> </div>
                <div class="col-md-4" style="background-color: activeborder">
                    <p></p>
                    <p > </p>
                    <p></p>
                    <form method="post" action="mylogin">
                        <div class="form-group">
                            <label  >your name</label>
                            <input  class="form-control" type="text" id="name" size="100" name="name" value="${name}" id="name" placeholder="input your name,please!"/>
                        </div>
                        <div class="form-group">
                            <label  >your pwd</label>
                            <input  class="form-control" type="password" size="100" name="pwd" id="pwd" placeholder="password"/>
                        </div>

                        <!--                        <div class="form-group">
                                                    <label  > </label>
                                                    <input type="radio" name="sex" value="male"  /> male
                                                    <input type="radio" name="sex" value="female"  /> female
                                                </div>
                                                
                                                <div class="form-group">
                                                    <label  > </label>
                                                    <input type="checkbox" name="sport" value="walk"  /> walk
                                                    <input type="checkbox" name="sport" value="bike"  /> bike
                                                </div>
                                                
                                                <div class="form-group">
                                                    <select name="select"  class="form-control">
                                                        <option value="1"> one</option>
                                                        <option > 2</option>
                                                        <option selected="selected"> 3</option>
                                                    </select>
                                                </div>
                                                <div class="form-group">
                                                <textarea rows="3"  name="text">ddd</textarea>
                                                </div>-->
                        <br><br>
                        <button type="submit" class="btn btn-danger"  >Submit</button>
                        <button type="button" class="btn btn-default" onclick="click1()" > button</button>

                    </form>
                </div>
                <div class="col-md-4"> </div>
            </div>

        </div> 



    </body>

    <script>
        
        function click1(){
            var name=document.getElementById("name").value;
            alert('hi!'+name);
        }

    </script>
    
    

</html>
